﻿@model UI.Models.Catalog.ProductsPerCategoryViewModel
@{
    ViewBag.Title = "Products per category";
}
<br />
<h1>@Model.CategoryName</h1>
<table  cellpadding="0" cellspacing="0">
    <thead>
        <tr class="gridHead">
            <td>
                Product ID
            </td>
            <td>
                Name
            </td>
        </tr>
    </thead>
    <tbody>
        @foreach (var product in Model.Products)
        {
            <tr class="gridItem">
                <td>@product.ProductId
                </td>
                <td>
                    @Html.ActionLink(product.Name, "ItemsPerProduct", "Catalog", new { productId = product.ProductId }, null)
                </td>
            </tr>
        }
    </tbody>
</table>
